from django.urls import path
from rest_framework.routers import SimpleRouter

from risk.views import *
from risk.views.apppoint import app_point

from risk.views.present import *

router = SimpleRouter()
router.register("complaints",       TousujvbaoViewSet)
router.register("popularfeelings",  YuqingViewSet)
router.register("grade",            PingfenViewSet)
router.register("entity",           EntityViewSet)
router.register("supervise",        JianduchouchaViewSet)
router.register("recall",           ZhaohuiViewSet)
router.register("event",            AnjianViewSet)
router.register("permission",       EntityGongyexvkeViewSet)
router.register("iso9000",          EntityIso9000ViewSet)
router.register("selfarea",         BuhegehouchuliGuoshengshichouViewSet)
router.register("otherarea",        BuhegehouchuliWaidiViewSet)

urlpatterns = [
    path('apppoint', app_point),
    path('complaints_pre/type/', get_type_data),
    path('complaints_pre/status/', get_status_data),
    path('complaints_pre/area/', get_area_data),

    path('event_pre/type_bar/', get_type_data_anjian_bar),
    path('event_pre/type/', get_type_data_anjian),
    path('event_pre/area/', get_area_data_anjian),

    path('supervise_pre/type_bar/', get_type_data_jiandu_bar),
    path('supervise_pre/type/', get_data_jiandu_2),
    path('supervise_pre/area/', get_area_data_jiandu),
    path('supervise_pre/5/', get_data_jiandu_5),

    path('total_enterprises', get_total_enterprises),
    path('industry_counts', get_industry_counts),
    path('area_counts', get_area_counts),
    path('area_industry_counts', get_area_industry_count),

    path('get_data/1', get_data_1),
    path('get_data/2', get_data_2),
    path('get_data/3', get_data_3),
    path('get_data/4', get_data_4),
    path('get_data/5', get_data_5),
    path('get_data/9', get_data_9),
    path('get_data/10', get_data_10),
    path('get_data/14', get_data_14),
    path('get_data/15', get_data_15),
    path('get_data/16', get_data_16),
    path('get_data/17', get_data_17),
]

urlpatterns += router.urls